.PHONY: all  clean

all: ProtoCode Writer Reader

Writer: Writer.cpp Message.pb.cc
	g++ -std=c++11 $^ -o $@ \
        -I../install/include/          \
          ../install/lib/libprotobuf.a  
Reader: Reader.cpp Message.pb.cc
	g++ -std=c++11 $^ -o $@ \
        -I../install/include/          \
          ../install/lib/libprotobuf.a  

ProtoCode: Message.proto
	../install/bin/protoc -I=./ --cpp_out=.  $^

run:
	./Writer
	./Reader
clean:
	rm -f Writer Reader  *.pb.cc *.pb.h
